/*
 * @Date         : 2022-11-17 21:02:24
 * @LastEditTime : 2022-11-17 21:54:41
 * @Author       : wenglong
 * @LastEditors  : wenglong
 * @Description  :  获取广告转化人群的展示数据
 */
import { tsFmtLongDate } from '@/utils/time';

import { DIMENSION_TYPE_MAP, MEASURE_TYPE_MAP } from '../constants';
const getShowContent = (data) => {
  const {
    dateRange,
    dimensionType,
    measureType,
    dimensionLabel = [],
    //   measureValueRange,
    measureValueRangeStart,
    measureValueRangeEnd,
    groupName,
  } = data;
  const dimensionValueStr = dimensionLabel.join(',');
  return `${groupName}：
    名称类型「${DIMENSION_TYPE_MAP[dimensionType]}」,
    计划名称「${dimensionValueStr}」,
    时间范围「${tsFmtLongDate(dateRange[0])}至${tsFmtLongDate(dateRange[1])}」,
    可信行为「${MEASURE_TYPE_MAP[measureType]}」,
    互动次数「${measureValueRangeStart}至${measureValueRangeEnd}」`;
};
export default getShowContent;
